package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.VO.CartVO;
import com.example.demo.bean.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author 京平笙
 * @since 2021-12-06
 */
public interface CartMapper extends BaseMapper<Cart> {
//    IPage<CartVO> showUserCart(Page<CartVO> page,
//                               @Param(Constants.WRAPPER) QueryWrapper queryWrapper);
IPage<CartVO> showUserCart(Page<CartVO> page,
                              @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

}